package com.yjz.springcloudeurekaserver;

import com.yjz.middlewareboot.properties.Hub4ProperTies;
import com.yjz.middlewareboot.properties.UnexProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableEurekaServer
public class SpringCloudEurekaServerApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(SpringCloudEurekaServerApplication.class, args);
//        //测试@EnableAutoConfiguration 注解的使用
//        TestServicde service = context.getBean(TestServicde.class);
//        App app = context.getBean(App.class);
//        System.out.println(app);

        Hub4ProperTies hub4ProperTies = context.getBean(Hub4ProperTies.class);
        UnexProperties unexProperties = context.getBean(UnexProperties.class);
        System.out.println(hub4ProperTies);

    }

}

